<?php
// ====================================================
// filename:wl101_delete.php
// summary: 用户管理画面_用户删除
// ====================================================
require_once ("../init.php");
php_handle();

function php_handle()
{
    $uid = $_SESSION['wl_uid'];
    $userid = isset($_POST['user_id']) ? $_POST['user_id'] : "";
    
    $wlu02 = new wlu02tbx();
    $u02del = array();
    $u02del["user_id"] = $userid;
    
    $u02rec = $wlu02->delete($uid, $u02del);
    if ($u02rec == 0) {
        echo json_encode(array(
            'success' => false,
            'msg' => "用户删除失败！"
        ));
        return;
    }
    
    echo json_encode(array(
        'success' => true,
        'data' => $userid
    ));
    return;
}

?>
